<template>
  <div>
    <el-row>
      <el-col :span="4" v-if="this.$route.path != '/login'">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <!-- 系统首页 -->
          <router-link to="/index" class="link1">
            <el-menu-item index="1">
              <i class="el-icon-discount"></i>
              <span slot="title"> 系统首页 </span>
            </el-menu-item>
          </router-link>
          <!-- 商品管理 -->
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-shopping-bag-1"></i>
              <span>商品管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/Product" class="link">
                <el-menu-item index="1-1"> 商品列表 </el-menu-item>
              </router-link>
              <router-link to="/ProduGroup" class="link">
                <el-menu-item index="1-2">商品组</el-menu-item>
              </router-link>
              <router-link to="/Classification" class="link">
                <el-menu-item index="1-3">分类管理</el-menu-item></router-link
              >
              <router-link to="/Branding" class="link">
                <el-menu-item index="1-4">品牌管理</el-menu-item></router-link
              >
              <router-link to="/Setup" class="link">
                <el-menu-item index="1-5">设置</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 订单管理 -->
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-tickets"></i>
              <span>订单管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/OrderOverview" class="link">
                <el-menu-item index="2-1">订单概述</el-menu-item>
              </router-link>
              <router-link to="/Status" class="link">
                <el-menu-item index="2-2">订单状态</el-menu-item>
              </router-link>
              <router-link to="/Rights" class="link">
                <el-menu-item index="2-3">维权管理</el-menu-item>
              </router-link>
              <router-link to="/Tool" class="link">
                <el-menu-item index="2-4">工具</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 财务管理 -->
          <el-submenu index="4">
            <template slot="title">
              <i class="el-icon-guide"></i>
              <span>财务管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/PointsDetails" class="link">
                <el-menu-item index="3-1">积分明细</el-menu-item>
              </router-link>
              <router-link to="/Balancedetails" class="link">
                <el-menu-item index="3-2">余额明细</el-menu-item>
              </router-link>
              <router-link to="/Statement" class="link">
                <el-menu-item index="3-3">对账单管理</el-menu-item>
              </router-link>
              <router-link to="/Recharge" class="link">
                <el-menu-item index="3-4">充值记录</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 优惠管理 -->
          <el-submenu index="5">
            <template slot="title">
              <i class="el-icon-bank-card"></i>
              <span>优惠管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/Basicfunction" class="link">
                <el-menu-item index="4-1">基本功能</el-menu-item>
              </router-link>
              <router-link to="/Coupon" class="link">
                <el-menu-item index="4-2">优惠券功能</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 会员管理 -->
          <el-submenu index="6">
            <template slot="title">
              <i class="el-icon-user"></i>
              <span>会员管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/MemberList" class="link">
                <el-menu-item index="5-1">会员列表</el-menu-item>
              </router-link>
              <router-link to="/MemberOverview" class="link">
                <el-menu-item index="5-2">会员概述</el-menu-item>
              </router-link>
              <router-link to="/Membershiplevel" class="link">
                <el-menu-item index="5-3">会员等级</el-menu-item>
              </router-link>
              <router-link to="/GroupSettings" class="link">
                <el-menu-item index="5-4">分组设置</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 活动管理 -->
          <el-submenu index="7">
            <template slot="title">
              <i class="el-icon-bicycle"></i>
              <span>活动管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/FlashKill" class="link">
                <el-menu-item index="6-1">秒杀管理</el-menu-item>
              </router-link>
              <router-link to="/Teamwork" class="link">
                <el-menu-item index="6-2">拼团管理</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 积分商城 -->
          <el-submenu index="8">
            <template slot="title">
              <i class="el-icon-chat-dot-square"></i>
              <span>积分商城</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/Productlist" class="link">
                <el-menu-item index="7-1">商品列表</el-menu-item>
              </router-link>
              <router-link to="/RotationChart" class="link">
                <el-menu-item index="7-2">轮播图管理</el-menu-item>
              </router-link>
              <router-link to="/Classification" class="link">
                <el-menu-item index="7-3">分类管理</el-menu-item>
              </router-link>
              <router-link to="/Statemanag" class="link">
                <el-menu-item index="7-4">状态管理</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 权限管理 -->
          <el-submenu index="11">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>权限管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/Store" class="link">
                <el-menu-item index="11-1">门店管理</el-menu-item>
              </router-link>
              <router-link to="/Administrator" class="link">
                <el-menu-item index="11-2">管理员管理</el-menu-item>
              </router-link>
              <router-link to="/Withdrawal" class="link">
                <el-menu-item index="11-3">提现管理</el-menu-item>
              </router-link>
              <router-link to="/Roles" class="link">
                <el-menu-item index="11-4">角色管理</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 评价管理 -->
          <el-submenu index="9">
            <template slot="title">
              <i class="el-icon-potato-strips"></i>
              <span>评价管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/Evaluation" class="link">
                <el-menu-item index="8-1">评价管理</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <!-- 信息管理 -->
          <el-submenu index="10">
            <template slot="title">
              <i class="el-icon-chat-line-square"></i>
              <span>信息管理</span>
            </template>
            <el-menu-item-group>
              <template slot="title"></template>
              <router-link to="/Applying" class="link">
                <el-menu-item index="9-1">意见反馈</el-menu-item>
              </router-link>
              <router-link to="/Feedback" class="link">
                <el-menu-item index="9-2">合作申请</el-menu-item>
              </router-link>
              <router-link to="/Medication" class="link">
                <el-menu-item index="9-3">用药问答</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-col>
      <el-col :span="20">
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      flag: true,
    };
  },
  methods: {},
};
</script>

<style>
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  /* background: #e5e9f2; */
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
.el-menu-vertical-demo {
  height: 100vh;
}
.link {
  text-decoration: none;
}
.link1 {
  color: white;
  text-decoration: none;
}
</style>
